package internal

import (
	"sync"
)

var UserRoom map[int64]*Room
var UserRoomMatching map[int64][][]int64

var Lock sync.RWMutex
var room *Room
var TotalLangMap map[string]map[string]map[int64]string

func init() {
	UserRoom = make(map[int64]*Room)
	UserRoomMatching = map[int64][][]int64{}
	skeleton.RegisterChanRPC("Push", Request)
	skeleton.RegisterChanRPC("CloseAgent", CloseAgent)

}

func CloseAgent(args []interface{}) {

}

func Request(args []interface{}) {
	go func() {
		room.Channel <- args
	}()
}
